package com.vb.scrum.client.widget;

import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class UserStorySticky extends VerticalPanel implements ValueChangeHandler<String> {
	
	//Properties deciding location of the sticky in the wall
	private int positionX;
	private int positionY;
	private String state;
	private String Substate;
	
	private Label dragger;
	private VerticalPanel sticky;
	private TextArea txtArea=new TextArea();

	public Label getDragger() {
		return dragger;
	}

	public void setDragger(Label dragger) {
		this.dragger = dragger;
	}

	public VerticalPanel getSticky() {
		return sticky;
	}

	public void setSticky(VerticalPanel sticky) {
		this.sticky = sticky;
	}

	public TextArea getTxtArea() {
		return txtArea;
	}

	public void setTxtArea(TextArea txtArea) {
		this.txtArea = txtArea;
	}
	public Widget onInitialize(){		
		this.setStyleName("scrum-story-sticky");
		this.setSize("150px", "150px");				
		dragger=new Label("");
		dragger.setSize("140px", "12px");
		dragger.setStyleName("scrum-story-header");		
		txtArea.addValueChangeHandler(this);
		txtArea.setSize("140px", "138px");
		txtArea.setStyleName("scrum-story-text");
		this.add(dragger);
		this.add(dragger);
		this.add(txtArea);		
		return this;
	}

	@Override
	public void onValueChange(ValueChangeEvent event) {
		Window.alert("Hi");
	}



}
